﻿<%@ Page ValidateRequest="false" Language="C#" AutoEventWireup="true" CodeFile="Adv_Add.aspx.cs" MasterPageFile="/Admin/MasterPage.master" Inherits="Admin_Form_Adv_Add" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="content" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
     <telerik:RadWindowManager runat="server" ID="window1" >
        <Windows>
             <telerik:RadWindow runat="server" Width="400px" Height="400px" VisibleStatusbar="false"
                NavigateUrl="FileManager.aspx" ID="ExplorerWindow" Modal="true" >
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>
    
     <input type="hidden" id="txtAdvID" runat="server" />
    <fieldset>
    <legend style="padding: 10px 20px 10px"><h3 style="color: #3333FF; font-size:large">QUẢN TRỊ QUẢNG CÁO</h3></legend>
    <div style="text-align:center; font-size:larger"><asp:Label runat="server" ID="lblMessage"> </asp:Label></div>
            <table style="text-align:left; width:800px">
                 
                <tr>
                    <td style="width:100px">Tiêu Đề</td>
                    <td><asp:TextBox runat="server" ID="txtCompanyName"></asp:TextBox></td>
                    <td><asp:RequiredFieldValidator ErrorMessage="Bạn phải nhập tên công ty" runat="server" ID="require1" ControlToValidate="txtCompanyName"></asp:RequiredFieldValidator></td>
                </tr>
                
                <tr>
                    <td style="width:100px">Ảnh đại diện</td>
                    <td><asp:TextBox  runat="server" ID="txtAdvDescription" Text="0"></asp:TextBox></td>
                    <td><asp:Button ID="Button1" OnClientClick="openRadWindow('FileManager.aspx?control=txtAdvDescription','ExplorerWindow'); return false;" Text="Open... " runat="server" /></td>
                </tr>
                
                <tr>
                    <td style="width:100px">Đường Dẫn</td>
                    <td>
                        <asp:TextBox CausesValidation="false" TextMode="MultiLine"  ID="txtAdvSource" Rows="10" Columns="50" runat="server"></asp:TextBox>
                        <asp:Button ID="selectFile" OnClientClick="openRadWindow('FileManager.aspx?control=txtAdvSource','ExplorerWindow'); return false;" Text="Open... " runat="server" />
                    </td>
                    
                </tr>
                
                <tr>
                    <td style="width:100px">Vị Trí Quảng Cáo</td>
                    <td>
                        <asp:DropDownList DataTextField="PropertyName" DataValueField="PropertyValue" runat="server" ID="cboAdvLocation"></asp:DropDownList>
                    </td>
                    
                </tr>
                
                <tr>
                    <td style="width:100px">Kiểu Quảng Cáo</td>
                    <td>
                        <asp:DropDownList DataTextField="PropertyValue" DataValueField="PropertyName" runat="server" ID="cboAdvType"></asp:DropDownList>
                    </td>
                </tr>
                
                <tr>
                    <td style="width:100px">Thứ tự hiện thị</td>
                    <td><asp:TextBox CssClass="AdminTextbox" runat="server" ID="txtViewOrder"></asp:TextBox></td>
                    <td></td>
                </tr>
                
                <tr>
                    <td style="width:100px">Duyệt</td>
                    <td><asp:CheckBox runat="server" ID="chkIsApproved" /></td>
                    <td></td>
                </tr>
                
                <tr>
                    <td colspan="3" align="center">
                        <asp:Button CssClass="AdminSaveButton" runat="server" ID="btnCreate" OnClick="btnCreate_Click" Text="Thêm Mới"  />
                        <asp:Button CssClass="AdminCancelButton" runat="server" ID="btnReset" OnClick="btnReset_Click" Text="Quay Lại" CausesValidation="false" />            
                    </td>
                </tr>
            </table>
        
           
    </fieldset>
</asp:Content>
